package com.tth.learn.addproperties.java;

import java.util.Iterator;
import java.util.List;

/**
 * @Author tth
 * @Date 2022/12/15 14:54
 */
public class GenericTest {
    private void print(List<?> list) {
        Iterator<?> iterator = list.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }
}
